package design.pattern.structural.bridge;

public class Test {
    public static void main(String[] args) {
        Color red = new Red();
        Color green = new Green();
        Color blue = new Blue();

        SmallPen smallPen = new SmallPen();
        smallPen.setColor(red);
        smallPen.draw("tiger");
        smallPen.setColor(green);
        smallPen.draw("grass");
        smallPen.setColor(blue);
        smallPen.draw("river");

        MiddlePen midPen = new MiddlePen();
        midPen.setColor(red);
        midPen.draw("tiger");
        midPen.setColor(green);
        midPen.draw("grass");
        midPen.setColor(blue);
        midPen.draw("river");

        BigPen bigPen = new BigPen();
        bigPen.setColor(red);
        bigPen.draw("tiger");
        bigPen.setColor(green);
        bigPen.draw("grass");
        bigPen.setColor(blue);
        bigPen.draw("river");
    }
}
